package com.zy.openchat.core.model.circle;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

public class CircleVisibleType {
    @SerializedName(value = "@type")
    public String type;
    public long user_id;
    public String topic;
    public int tab;

    public CircleVisibleType(int type,String topic) {
        if(TextUtils.isEmpty(topic)){
            switch (type){
                case 0:
                    this.type = "visibleTypePublic";
                    break;
                case 1:
                    this.type = "visibleTypeFollow";
                    break;
                default:
                    this.type = "visibleTypeFriend";
                    break;
            }
        }else{
            this.type = "visibleTypeTopic";
            this.tab = type+1;
            this.topic = topic;
        }

    }

    public CircleVisibleType(long user_id) {
        this.type = "visibleTypeUser";
        this.user_id = user_id;
    }
}
